package com.example.service.statistics.impl;

import com.example.dao.statistics.ProductCollectNumberDao;
import com.example.pojo.Node;
import com.example.pojo.Product;
import com.example.service.product.PriductCategroyService;
import com.example.service.statistics.ProductCollectNumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*
 *  @ClassName:ProductCollectNumberServiceImpl
 *  @Author:WZ
 *  @DateTime:2023/1/31/9:58
 *  //商品统计 -- 收藏的商品
 */
@Service
@Transactional
public class ProductCollectNumberServiceImpl implements ProductCollectNumberService {
    @Autowired
    private ProductCollectNumberDao productCollectNumberDao;


    @Override
    public List<Product> getProductCollectNumberZj7t() {
        return productCollectNumberDao.getProductCollectNumberZj7t();
    }

    @Override
    public List<Product> getProductCollectNumberZj30t() {
        return productCollectNumberDao.getProductCollectNumberZj30t();
    }

    @Override
    public List<Product> getProductCollectNumberZj90t() {
        return productCollectNumberDao.getProductCollectNumberZj90t();
    }

    @Override
    public List<Product> getProductCollectNumber() {
        return productCollectNumberDao.getProductCollectNumber();
    }

    @Override
    public List<Product> getProductCollectNumberLike(String s1, String s2) {
        return productCollectNumberDao.getProductCollectNumberLike(s1,s2);
    }
}
